package com.gateway.jug.logic;

public class Pythagorean {

	public static double computeDistance(double lat1, double lon1, double lat2, double lon2) {
		double dLat = Math.toRadians(lat2-lat1);
		double dLon = Math.toRadians(lon2-lon1);
		
		double d = Constants.RADIUS_MI * Math.sqrt(Math.pow(dLat, 2) + Math.pow(dLon, 2));
		return d;
	}
	
}
